<?php

namespace App\Admin\Repositories;

use Dcat\Admin\Repositories\EloquentRepository;
use App\Models\MessageReceiver as MessageReceiverModel;

class MessageReceiver extends EloquentRepository
{

    public $model;

    public function __construct()
    {
        $this->model = new MessageReceiverModel();
    }


    /**
     *
     */
    public function addReceiver($message_id, $receiver_id)
    {
        $this->model->message_id = $message_id;
        $this->model->receiver_id = $receiver_id;
        $this->model->save();
    }

}
